package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class UploadController {



    @PostMapping("coverImageUpload")
    public Object coverImageUpload(MultipartFile pic) throws Exception {
        String p = UploadUtil.uploadAli(pic);
        return p;
    }

}
